package com.changgou.user.feign;


import com.changgou.entity.Result;
import com.changgou.user.pojo.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;


@FeignClient(name="user-service")
@RequestMapping("/address")
public interface AddressFeign {

    @GetMapping(value = "/list")
    public Result<List<Address>> list();

}